package cn.llyong.rpc.server.config;

import cn.llyong.rpc.common.registry.ServiceRegistry;
import cn.llyong.rpc.server.netty.RpcServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: lvyong
 * @date: 2020年07月23日 16:40
 */
@Configuration
public class BeanConfiguration {

    @Bean
    public ServiceRegistry serviceRegistry() {
        return new ServiceRegistry();
    }

    @Bean
    public RpcServer rpcServer() {
        return new RpcServer();
    }

}
